package com.loser.excel.core;

import lombok.Data;

@Data
public class ExcelExportType {

    /**
     * 导出接口对应的导出文件的文件名称
     */
    private String fileName;

    private String titleName;

    private String sheetName;

    private String category;

    public ExcelExportType(String fileName, String category) {
        this.fileName = fileName;
        this.category = category;
    }

    private ExcelExportType(String fileName, String titleName, String sheetName, String category) {
        this.fileName = fileName;
        this.titleName = titleName;
        this.sheetName = sheetName;
        this.category = category;
    }

    public static ExcelExportType build(String fileName, String category) {
        return new ExcelExportType(fileName, category);
    }

    public static ExcelExportType build(String fileName, String titleName, String sheetName, String category) {
        return new ExcelExportType(fileName, titleName, sheetName, category);
    }

}
